package com.huike.web.controller.report;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.huike.common.core.controller.BaseController;
import com.huike.common.core.domain.AjaxResult;
import com.huike.common.core.domain.BaseEntity;
import com.huike.report.service.IReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/index")
public class IndexController extends BaseController {
    @Autowired
    IReportService ireportService;
    @GetMapping("/salesStatistic")
    public AjaxResult getSalesStatistic(Date beginCreateTime,Date endCreateTime){
        return AjaxResult.success(ireportService.getSalesStatistic(beginCreateTime,endCreateTime));
    }

}
